<?php $aparts = query("SELECT * from apartments where owner_id = ?",$_SESSION['user_id']); ?>
                        <div class="">
                        <h1>إعدادات الاسعار</h1>
                        <hr />
                        <div class="bookings-edit-container">
                        <div class="bookings-edit-row">
                        <div style="max-height:350px; overflow-y:scroll; overflow-x:hidden">
                        <P>أضغط على السعر وقم بتعديله</p>
                        <table style="font-size:10px !important;width:100%; margin-bottom:20px;" class="customers-table center">
                            	<tr class="bg-head">
                                    <td colspan="3" class=""></td>
                                    <td colspan="3" class="">الفترة 1</td>
                                    <td colspan="3" class="">الفترة 2</td>
                                    <td colspan="3" class="">الفترة 3</td>
                                </tr>
                                <tr>
                                    <td class="">اسم الوحدة</td>
                                    <td class="">الطابق</td>
                                    <td class="">الغرف</td>
                                    <td class="">اليومى</td>
                                    <td class="">الأسبوعى</td>
                                    <td class="">الشهرى</td>
                                    <td class="">اليومى</td>
                                    <td class="">الأسبوعى</td>
                                    <td class="">الشهرى</td>
                                    <td class="">اليومى</td>
                                    <td class="">الأسبوعى</td>
                                    <td class="">الشهرى</td>
                                </tr>
                                <?php foreach($aparts as $apart)
                                  { ?>
                                <tr>
                                  
                                    <td class="apart_id" value="<?php echo $apart['id']; ?>"><?php echo $apart['apart_name']; ?></td>
                                    <td class=""><?php echo $apart['floor']; ?></td>
                                    <td class=""><?php echo $apart['rooms']; ?></td>
                                    <td class="edit-price" value="daily1"><?php echo $apart['daily1']; ?></td>
                                    <td class="edit-price" value="weekly1"><?php echo $apart['weekly1']; ?></td>
                                    <td class="edit-price" value="monthly1"><?php echo $apart['monthly1']; ?></td>
                                    <td class="edit-price" value="daily2"><?php echo $apart['daily2']; ?></td>
                                    <td class="edit-price" value="weekly2"><?php echo $apart['weekly2']; ?></td>
                                    <td class="edit-price" value="monthly2"><?php echo $apart['monthly2']; ?></td>
                                    <td class="edit-price" value="daily3"><?php echo $apart['daily3']; ?></td>
                                    <td class="edit-price" value="weekly3"><?php echo $apart['weekly3']; ?></td>
                                    <td class="edit-price" value="monthly3"><?php echo $apart['monthly3']; ?></td>
                                </tr>
                                <?php } ?>
                         </table >
                         </div>
                         <h2>تحديد الفترات</h2>
                         <form name="periods" method="post" action="settings.php" id="periods">
                           <div class="clear" style="margin-bottom:14px">
                             <input type="hidden" name="add-periods" value="1"/>
                             <span class="margin-left20">فترة 1: </span>
                             <label>من &nbsp;</label><span><input type="text" readonly class="small-input" id="from-1" name="from-1" required value=""></span>
                             <label>إلى &nbsp;</label><span><input type="text" readonly class="small-input" name="to-1" id="to-1" required value=""></span>
                           </div>
                           <div class="clear" style="margin-bottom:14px">
                             <span class="margin-left20">فترة 2: </span>
                             <label>من &nbsp;</label><span><input type="text" readonly class="small-input" name="from-2" id="from-2" required value=""></span>
                             <label>إلى &nbsp;</label><span><input type="text" readonly class="small-input" name="to-2" id="to-2" required value=""></span>
                           </div>
                           <div class="clear" style="margin-bottom:14px">
                             <span class="margin-left20">فترة 3: </span>
                             <label>من &nbsp;</label><span><input type="text" readonly class="small-input" name="from-3" id="from-3" required value=""></span>
                             <label>إلى &nbsp;</label><span><input type="text" readonly class="small-input" name="to-3" id="to-3" required value=""></span>
                           </div>
                           <div style="margin-top:0;float:none" class="small-botton">تعديل</div>  
                        </form>
                        </div>
                        </div>
                      </div>  
